﻿using BootstrapBlazor.Components;
using OnWork.DataCenter.DAL.DataCenter;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;

namespace OnWork.DataCenter.Shared.Pages.DataSource
{
    public class MqttStoragVO
    {
        /// <summary>
        /// 主键
        /// </summary>
        [AutoGenerateColumn(Visible = false, Readonly = true)]
        public long ID { get; set; }

        /// <summary>
        /// MQTTTtopic配置的ID
        /// </summary>
        [AutoGenerateColumn(Text = "订阅主题", Searchable = true, Filterable = true, Sortable = true), DisplayName("订阅主题")]
        public long MqttTopicID { get; set; }

        ///// <summary>
        /////流程配置
        ///// </summary>
        //[AutoGenerateColumn(Text = "数据标准配置",Ignore =true), DisplayName("数据标准配置")]
        //public string ProcessConfig { get; set; }

        /// <summary>
        /// 主题信息
        /// </summary>
        public MqttTopicVO Topic { get; set; } = new MqttTopicVO();

        /// <summary>
        ///任务配置(显示)
        /// </summary>
        [AutoGenerateColumn(Text = "任务配置", ShowTips = true, TextEllipsis = true, Width = 260), DisplayName("任务配置")]
        public string TaskConfigView { get; set; }

        /// <summary>
        /// 流程图配置
        /// </summary>
        [AutoGenerateColumn(Visible = false, Readonly = true, Ignore = true)]
        public string DiagramData { get; set; }
    }
}
